package oracle.apps.financials.collection.po;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

public class TitleItemView extends TextView implements ItemView {

	public TitleItemView(Context context) {
		this(context, null);
	}

	public TitleItemView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}

	public TitleItemView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public void prepareItemView() {
	}

	public void setObject(Item object) {
		final TextItem item = (TextItem) object;
		setText(item.text);
		if (item.backgroundColor != 0) {
			this.setBackgroundColor(item.backgroundColor);
		}

	}

}
